package NewTmas.Listeners;

import NewTmas.FramesandPanels.JobMonitorOpenerFrame;
import NewTmas.FramesandPanels.OpsModeMainFrame;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * Created by IntelliJ IDEA.
 * User: abhatnag
 * Date: 7/15/11
 * Time: 8:37 AM
 * To change this template use File | Settings | File Templates.
 */
public class JobOpenButtonListener implements ActionListener {
    OpsModeMainFrame opsModeMainFrame;

    public JobOpenButtonListener(OpsModeMainFrame opsModeMainFrame) {
        this.opsModeMainFrame=opsModeMainFrame;
    }

    public void actionPerformed(ActionEvent e) {

        JobMonitorOpenerFrame frame=new JobMonitorOpenerFrame(opsModeMainFrame.getUser(),opsModeMainFrame.getLl(),opsModeMainFrame.getTb(),opsModeMainFrame.getDtp(),opsModeMainFrame) ;
         frame.setVisible(true);

    }
}
